import { createApp } from 'vue'
import './style.css'
// import '../public/static/config/systemSetting'
import App from './App.vue'
import router from './router' // 导入路由配置
import { createPinia } from 'pinia' // 导入 Pinia
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs' // 导入中文语言包
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
app.use(router) // 使用路由
app.use(createPinia()) // 启用 Pinia
app.use(ElementPlus, {
  locale: zhCn, // 设置全局语言为中文
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
